package com.test.service.impl;

import com.test.mapper.RoleMapper;
import com.test.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.test.po.Role;

import java.util.List;

/**
 * Created by Lenovo on 2019/1/9.
 */
@Service
public class RoleServiceImpl implements RoleService{

    @Autowired
    private RoleMapper roleMapper;

    public List<Role> getRoleByUserId(int userId){
        List<Role> rolePoList = roleMapper.getRoleByUserId(userId);
        return rolePoList;
    }
}
